package com.hh.admin.entity;

import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.TableLogic;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author hxn
 * @since 2018-01-16
 */
@TableName("sys_group")
public class SysGroup implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 父节点ID
     */
	private Long pid;
    /**
     * 组织机构名称
     */
	@TableField("group_name")
	private String groupName;
    /**
     * 是否启用 1 启用 0 不启用
     */
	@TableField("is_enable")
	private Integer isEnable;
	@TableField(value = "create_time",fill = FieldFill.INSERT)
	private Date createTime;
	@TableField(value = "update_time",fill = FieldFill.UPDATE)
	private Date updateTime;
    /**
     * 是否删除标识 1 删除 0 未删除
     */
	@TableField("is_delete")
    @TableLogic
	private Integer isDelete;
	
	@TableField(exist=false)
	private String parentName;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getPid() {
		return pid;
	}

	public void setPid(Long pid) {
		this.pid = pid;
	}

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public Integer getIsEnable() {
		return isEnable;
	}

	public void setIsEnable(Integer isEnable) {
		this.isEnable = isEnable;
	}

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}

	@Override
	public String toString() {
		return "SysGroup{" +
			"id=" + id +
			", pid=" + pid +
			", groupName=" + groupName +
			", isEnable=" + isEnable +
			", createTime=" + createTime +
			", updateTime=" + updateTime +
			", isDelete=" + isDelete +
			"}";
	}
}
